package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryForObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;
import java.util.Set;

public interface IPermissionService {
	
	void save(Permission entity);

	void update(Permission entity);
	
	void delete(Long id);
	
	Permission get(Long id);
	
	List<Permission>list();

	PageResult query(QueryForObject qo);

	void reload();

	List<Permission> queryPermissionByRoleId(Long roleId);

	Set<String> queryPermissionResourceByEmpId(Long id);

}
